package com.sumainfor.pc.market.controller.gmio;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.TenantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/5/15 19:53
 * @Description:
 */
@RestController
@RequestMapping("/key/gmiotenant")
public class gmioTenantController {

    @Autowired
    TenantService TenantService;

    /**
     * 功能描述: 
     * 获取所有的租客资料
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/5/15 19:54
     */
    @ResponseBody
    @GetMapping("/getTenantList")
    public JsonResult getTenantList(){
        JsonResult result=new JsonResult();
        return result.put(TenantService.getTenantList());
    }
}
